package edu.sjb.map.prizes;

import edu.sjb.Drawable;
import edu.sjb.constants.ImageConstants;
import edu.sjb.constants.ScoreConstants;

public class Mushroom extends PowerUp {
	public Mushroom() {
		super();
	}

	@Override
	public void grab() {

		if (game().mario().underSuperMushroomEffect()) {
			game().changeScore(ScoreConstants.MUSHROOM_ALREADY_HAVE);
		}
		else {
			game().mario().setUnderSuperMushroomEffect(true);
			game().mario().grow();
			game().changeScore(ScoreConstants.MUSHROOM);
		}
	}

	protected Object clone() {

		Mushroom mush = new Mushroom();
		Drawable img = new Drawable(ImageConstants.MUSH_SUPER, true);
		mush.setImage(img);
		return mush;
	}

	@Override
	public void run() {
	}

}
